function getDateArray(endDate, splitTime, count) {
    if (!endDate) {
        endDate = new Date();
    }
    if (!splitTime) {
        splitTime = 30 * 60 * 1000;
    }
    if (!count) {
        count = 12;
    }
    var endTime = endDate.getTime();
    var mod = endTime % splitTime;
    if (mod > 0) {
        endTime -= mod;
    }
    function checkTime(i){
        if (i<10){
            i="0" + i
        }
        return i;
     }
    var dateArray = [];
    while (count-- > 0) {
        var d = new Date();
        d.setTime(endTime - count * splitTime + 21600000);
        // console.log(checkTime(d.getHours()) + ':' + checkTime(d.getMinutes()))
        dateArray.push(checkTime(d.getHours()) + ':' + checkTime(d.getMinutes()));

    }
//    console.log(dateArray,'js')
    return dateArray;
}
export default getDateArray